package com.bootdo.coach.service.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.bootdo.coach.dao.TabMsgMapper;
import com.bootdo.coach.dao.ext.ExtTabMsgMapper;
import com.bootdo.coach.domain.TabMsg;
import com.bootdo.coach.service.TabMsgService;
import com.bootdo.coach.vo.TabMsgVo;


@Service
public class TabMsgServiceImpl implements TabMsgService {
    @Autowired
    private TabMsgMapper mapper;
    @Autowired
    private ExtTabMsgMapper extMapper;
	@Override
	public List<TabMsgVo> list(Map<String, Object> params) {
		
		return extMapper.list(params);
	}
	@Override
	public int count(Map<String, Object> params) {
		
		return extMapper.count(params);
	}
	@Override
	public TabMsg selectByPrimaryKey(Long id) {
		
		return mapper.selectByPrimaryKey(id);
	}
	@Override
	public TabMsgVo selectByMsgId(Long id) {
		
		return extMapper.selectByMsgId(id);
	}
	@Override
	public int insertSelective(TabMsg record) {
		
		return mapper.insertSelective(record);
	}
	@Override
	public int updateByPrimaryKeySelective(TabMsg record) {
		
		return mapper.updateByPrimaryKeySelective(record);
	}
	@Override
	public int deleteByPrimaryKey(Long id) {
		return mapper.deleteByPrimaryKey(id);
	}
	
	@Override
	public TabMsg findByMap(Map<String, Object> paramMap) {
		return extMapper.findByMap(paramMap);
	}
}
